CallInterface

interface CallInterface

Base interface for all call classes.

Since

2.0.0

Inheritors

Properties

Link copied to clipboard
abstract val activeCamera: Int?
Link copied to clipboard
abstract val calleeAddress: String?

Returns the callee address information related the call instance

Link copied to clipboard
abstract val calleeName: String?

Returns caller name of the related call

Link copied to clipboard
abstract val callerAddress: String?

Returns the caller address information related the call instance

Link copied to clipboard
abstract var callerName: String?

This method sets the caller name of origin. Especially needed for anonymous calls.

Link copied to clipboard
abstract val callId: String?

Returns callId that related with SIP session id For the outgoing call, this value is not set until establish call is succeeded

Link copied to clipboard
abstract val callState: CallState?

Returns the state of the call

Link copied to clipboard
Link copied to clipboard
abstract var customParameters: Map<String?, String?>?

Sets given custom SIP Headers as custom parameters to call in order to send them in all mid-call event requests.

Link copied to clipboard
abstract val id: String?

Returns unique identifier of call object which is generated from SDK Identifier is NOT related with SIP session id

Link copied to clipboard
abstract val isMute: Boolean

Returns if call is in mute state

Link copied to clipboard
abstract var isVideoEnabled: Boolean

Sets video enabled or not for this call.

Link copied to clipboard
abstract var isVoiceEnabled: Boolean

Sets microphone muted or not for this call.

Link copied to clipboard
abstract val mediaAttributes: MediaAttributes?

Returns the media attributes of the call

Link copied to clipboard
abstract val videoViewOnFront: VideoViewType?

Returns type of the Video View which is on front.

Functions

Link copied to clipboard
abstract fun addPropertyChangeListener(propertyName: Constants.ChangeListenerKey, listener: PropertyChangeListener?)

In case of callerAddress or calleeAddress changes this callback will notify the application.

Link copied to clipboard
abstract fun bringVideoViewToFront(videoViewType: VideoViewType)

Puts Video View of given type in front of any other Video View.

Link copied to clipboard
abstract fun canReceiveVideo(): Boolean

Indicates remote side can send video or not. Local side can receive video if he wishes. It is determined by Remote Session Description direction as follows

Link copied to clipboard
abstract fun canSendVideo(): Boolean

Indicates remote side can receive video or not. Local side can send video if he wishes. It is determined by Remote Session Description direction as follows

Link copied to clipboard
abstract fun changeVideoResolution(width: Int, height: Int)

Changes video resolution as given values. These values are not saved so they can be thought as temporary

Link copied to clipboard

Stops the related call and releases allocated resources.

abstract fun endCall(callEndReason: String?)

Stops the related call with reason and releases allocated resources. If reason string char length is more than 600 char, first 600 char will send to remote.

Link copied to clipboard
abstract fun getAvailableCodecs(codecType: CodecType?): List<Map<*, *>?>?

Returns the list of available and supported codecs

Link copied to clipboard
abstract fun getRTPStatistics(handler: RTPStatisticsHandler)

Gets RTP/RTP Statistics for related call

Link copied to clipboard
abstract fun holdCall()

Holds the related call.

Link copied to clipboard
abstract fun mute()

Mutes the voice of local user.

Link copied to clipboard
abstract fun sendCustomParameters(customParameters: Map<String?, String?>?)

Sends the given custom SIP headers to WebRTC GW server.

Link copied to clipboard
abstract fun sendDTMF(tone: Char): Boolean

Inserts Dual Tone Multi Frequency Signal to sending queue and returns the success

Link copied to clipboard

Sets device capture to image source for the related call

abstract fun setCaptureDevice(position: Int, videoResolution: Camera.Size?, processListener: ProcessListener?)

Sets device capture and video resolution to specified position and resolution of the related call

Link copied to clipboard
abstract fun setLocalVideoView(localVideoView: VideoView?)

Sets GUI View for video of local user

Link copied to clipboard
abstract fun setRemoteVideoView(remoteVideoView: VideoView?)

Sets GUI View for video of remote peer

Link copied to clipboard

Takes still image of the active local video stream

Link copied to clipboard
abstract fun unHoldCall()

Unholds the related call.

Link copied to clipboard
abstract fun unMute()

Opens the voice of local user.

Link copied to clipboard
abstract fun videoMute()
Link copied to clipboard
abstract fun videoStart()

Starts video of local user.

Link copied to clipboard
abstract fun videoStop()

Stops the video of local user.

Link copied to clipboard
abstract fun videoUnMute()